﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
    /// <summary>
    ///  小区状况勘察
    /// </summary>
    public class VillageBll
    {
        VillageDal dal = new VillageDal();
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="t">实体对象</param>
        /// <returns>bool类型 true为添加成功，false为添加失败</returns>
        public bool Add(Model.EAVillage t)
        {
            return dal.Add(t);
        }
        /// <summary>
        /// 小区勘察反填
        /// </summary>
        /// <param name="pro"></param>
        /// <returns></returns>
        public List<EAVillage> GetListByPro(string pro)
        {
            return dal.GetListByPro(pro);
        }
        /// <summary>
        /// 判断项目号是否唯一
        /// </summary>
        /// <param name="pro"></param>
        /// <returns></returns>
        public int GetCount(string pro)
        {
            return dal.GetCount(pro);
        }
        /// <summary>
        /// 根据项目编号重载
        /// </summary>
        /// <param name="loca"></param>
        /// <returns></returns>
        public bool Update(EAVillage vill)
        {
            return dal.Update(vill);
        }
    }
}
